package org.example;

import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool;

public class Main {
    /**
     * netstat -ano|findstr 8888
     *  可以通过这个命令查看8888端口是否被映射成功
     */


    public static void main(String[] args) {
        JedisPool jedisPool = new JedisPool("tcp://127.0.0.1:8888");
        try(Jedis jedis = jedisPool.getResource()){
            String pong = jedis.ping();
            System.out.println(pong);
        }
    }
}